package com.jingbian.cppccbackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author yezi
 * @since 2025-02-09
 */
@Data
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;

    private String uname;
    @NotEmpty
    @JsonIgnore
    private String password;

    private String phone;

    private String gender;

    private String ethnicity;

    private LocalDate birthDate;

    private String unit;

    private String identity;

    private String affiliation;

    private String region;

    private String reservedInfo;

    private String status;
    
    private Boolean isOr;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime registrationTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updateTime;

    private String openid;

    private Integer registrationCount;
    private Boolean isActive;
    private String previousStatus;

    private String address;

    private String postalCode;

    private Double score;
}